/* 
    <provides OS-like functionality using a time-triggered scheduler>
    Copyright (C) <2012>  <Jonathan D. Armstrong> <jonathan.armstrong AT mavs.uta.edu>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/**
 * @file   projectdefs.h
 * @Author Jonathan D. Armstrong (jonathan.armstrong@mavs.uta.edu)
 * @date   December, 2012
 * @brief  Provides selection of project options (ex. turn on/off debugging)
 *         and selection of which port of nortos to compile.
 *
 * Selection of port to compile could be handled here or possibly in some
 * fancy makefile.
 */
 
#ifndef PROJECTDEFS_H
#define PROJECTDEFS_H

/* uncomment to specify target port */
/* FIXME: best place to do this or on command-line somehow? */
#define PC_PORT

/* uncomment to allow debug printf messages */
#define TASK_DEBUG
#define NORTOS_DEBUG
//#define INTERRUPT_DEBUG

/* x86 PC port */
#ifdef PC_PORT
    /* needed to allow use of signal(), alarm() to simulate hardware timer interrupt */
    #include <signal.h>
    #include <unistd.h>
    
#else
    /* better way to catch case where no proper port is defined? */
    /* will always freeze program if this line is executed */
    assert(0);
#endif

#endif /* PROJECTDEFS_H */